package org.jeu.cassesbriques;


public class Barre {

	//Largeur et hauteur de la barre
	private int width;
	private int height;

	private int x, y;
	
	public Barre(int x, int y, int w, int h)
	{
		this.x=x;
		this.y=y;
		this.width = w;
		this.height = h;
	}
	
	public int getX(){
		return x;
	}
	public int getY(){
		return y;
	}
	public int getWidth(){
		return width;
	}
	public int getHeight(){
		return height;
	}
	public void setX(int x){
		this.x=x;
	}
	public void setY(int y){
		this.y=y;
	}
	public void moveL()
	{
		x--;
	}
	public void moveR()
	{
		x++;
	}
}
